package com.zb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zb.entity.ZjFactoryRecharge;
import com.zb.extend.FactoryRechargeExtend;
import com.zb.vo.FactoryRechargeCheckListSearchVo;
import com.zb.vo.FactoryRechargeListSearchVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 厂商充值表 Mapper 接口
 * </p>
 *
 * @author WEN
 * @since 2024-02-28
 */
@Repository
public interface ZjFactoryRechargeMapper extends BaseMapper<ZjFactoryRecharge> {

    /**
     * 获取商家详情之充值记录
     * @param factoryId 品牌商家ID
     * @param searchVo
     * @return
     */
    List<ZjFactoryRecharge> getFactoryRechargeList(@Param("factoryId") Long factoryId, @Param("searchVo") FactoryRechargeListSearchVo searchVo);

    /**
     * 获取商家详情之充值记录总记录数
     * @param factoryId 品牌商家ID
     * @param searchVo
     * @return
     */
    long getFactoryRechargeListCount(@Param("factoryId") Long factoryId, @Param("searchVo") FactoryRechargeListSearchVo searchVo);

    /**
     * 获取商家充值审核列表
     * @param custAccId 商家ID
     * @param search 搜索关键词
     * @return
     */
    List<FactoryRechargeExtend> getFactoryRechargeCheckList(@Param("custAccId") Long custAccId, @Param("search") FactoryRechargeCheckListSearchVo search);

    /**
     * 获取商家充值审核列表总记录数
     * @param custAccId 商家ID
     * @param search 搜索关键词
     * @return
     */
    long getFactoryRechargeCheckListCount(@Param("custAccId") Long custAccId, @Param("search") FactoryRechargeCheckListSearchVo search);

}
